package com.deruan.hotcore.resource.search.gui;

import java.awt.Dimension;
import java.awt.Rectangle;

import javax.swing.JPanel;
import javax.swing.Scrollable;

public class ScrollablePanel extends JPanel implements Scrollable
{
	public ScrollablePanel()
	{
		super();
	}
	public Dimension getPreferredScrollableViewportSize() 
	{
	    return getPreferredSize();
	}

	  public int getScrollableBlockIncrement(Rectangle r, int orietation,int direction)
	  {
	    return 10;
	  }

	  public boolean getScrollableTracksViewportHeight() 
	  {
	    return false;
	  }

	  public boolean getScrollableTracksViewportWidth() 
	  {
	    return false;
	  }

	  public int getScrollableUnitIncrement(Rectangle r, int orientation,int direction) 
	  {
	    return 10;
	  }
}
